<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
	<meta name="author" content="Coderthemes">
	
	<!-- jQuery  -->
    <script type="text/javascript" src="/static/plugins/jquery/jquery-3.6.0.min.js"></script>
	
	<!-- layui  -->
	<link rel="stylesheet" href="/static/plugins/layui/2.7.6/css/layui.css" media="all" />
	<script src="/static/plugins/layui/2.7.6/layui.js" charset="utf-8"></script>
</head>

<body>
	<form class="layui-form" id="id_form" method="post" action="/api/inter/tpQuestion/add">
	<input type="hidden" name="userId" th:value="${dto.userId}" >
		
			<div class="layui-form-item">
			<label class="layui-form-label">处理人姓名</label>
			<div class="layui-input-block">
				<input type="text" name="name"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.name}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">工号</label>
			<div class="layui-input-block">
				<input type="text" name="userId"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.userId}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">部门</label>
			<div class="layui-input-block">
			<div class="layui-input-block">
				<input type="text" name="dept"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.dept}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">问题分类</label>
			<div class="layui-input-block">
				<input type="text" name="fenlei"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.fenlei}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">问题记录时间</label>
			<div class="layui-input-block">
				<input type="text" name="jiluTime"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.jiluTime}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">问题反馈时间</label>
			<div class="layui-input-block">
				<input type="text" name="fankuiTime"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.fankuiTime}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">问题内容</label>
			<div class="layui-input-block">
				<input type="text" name="title"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.title}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">问题状态</label>
			<div class="layui-input-block">
				<input type="text" name="zhuangtai"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.zhuangtai}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">处理结果</label>
			<div class="layui-input-block">
				<input type="text" name="chulijieguo"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.chulijieguo}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">问题提出公司编码</label>
			<div class="layui-input-block">
				<input type="text" name="vGsBm"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.vGsBm}" readonly="readonly">
			</div>
		</div>
		
		
		<div class="layui-form-item">
			<label class="layui-form-label">运营人姓名</label>
			<div class="layui-input-block">
				<input type="text" name="userName"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.userName}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">运营人账号</label>
			<div class="layui-input-block">
				<input type="text" name="code"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.code}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">运营人部门</label>
			<div class="layui-input-block">
				<input type="text" name="dept2"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.dept2}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">上级公司编码</label>
			<div class="layui-input-block">
				<input type="text" name="vGsBm2"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.vGsBm2}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">上级公司简称</label>
			<div class="layui-input-block">
				<input type="text" name="vGsJc2"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.vGsJc2}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">上级运营人姓名</label>
			<div class="layui-input-block">
				<input type="text" name="name2"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.name2}" readonly="readonly">
			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">上级账号</label>
			<div class="layui-input-block">
				<input type="text" name="code2"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.code2}" readonly="readonly">
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">上级部门</label>
			<div class="layui-input-block">
				<input type="text" name="dept3"  class="layui-input" autocomplete="off" lay-verify="required" th:value="${dto.dept3}" readonly="readonly">
			</div>
		</div>
		
	
>
	</form>
	<form class="layui-form" id="formId" method="post" action="/api/inter/tpQuestion/add">

		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;"></fieldset>
		<div class="layui-form-item">
			<div class="layui-col-md1 layui-col-md-offset11">
				<div class="layui-btn-container">
					<button type="button" class="layui-btn" lay-submit lay-filter="formSubmit">保存</button>
				</div>
			</div>
		</div>
	</form>
	<script>
	$(function () {
		layui.use(['form'], function(){
			var form = layui.form;
			
			// 表单提交，共用同一个
			form.on('submit(formSubmit)', function(data){
				console.log("data",data)
				var indexOfLoading = layer.load(1, {
					shade: [0.5,'#000000'] //0.1透明度的白色背景
				});
				$.post(data.form.action, data.field, function(res){
					if (res.code == 0) {
						layer.close(indexOfLoading);
						layer.msg(res.msg);
						setTimeout(function(){
							window.parent.layer.close(parent.layer.getFrameIndex(window.name));
						}, 1000);
					} else {
						layer.close(indexOfLoading);
						layer.msg(res.msg);
					}
				});
				return false;
			});
		});
	});
	</script>
</body>
</html>